package com.oren.system.pojo;

import javax.persistence.criteria.CriteriaBuilder;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author: wsw
 * @Description: 部门
 * @Date: Create on 2018/7/29 14:37
 */
public class Department implements Serializable {

    /**
     * 部门id
     */
    private Integer id;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 上级部门
     */
    private Integer parentId;

    /**
     * 部门负责人
     */
    private Integer userId;

    /**
     * 部门创建时间
     */
    private Date createTime;

    /**
     * 部门描述
     */
    private String desc;

    /**
     * 图标
     */
    private String iconImg;

    /**
     * 子集合
     */
    private List<Department> listChild;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getIconImg() {
        return iconImg;
    }

    public void setIconImg(String iconImg) {
        this.iconImg = iconImg;
    }

    public List<Department> getListChild() {
        return listChild;
    }

    public void setListChild(List<Department> listChild) {
        this.listChild = listChild;
    }
}
